GXPrintDefault
QuickDraw GX sends theGXPrintDefault
message when an application that supports the Macintosh Printing Manager calls thePrintDefault
function. You can override theGXPrintDefault
message to customize the handling of thePrintDefault
function. Your override of theGXPrintDefault
message must match the following formal declaration:
OSErr MyPrintDefault (THPrint aTHPrint);
aTHPrint
- A handle to the print record for this printing operation.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
The default implementation of this message loads a default'PREC'
resource. You can override this message to add any special handling of the default print record.SPECIAL CONSIDERATIONS
You never send theGXPrintDefault
message yourself.You almost always forward the
GXPrintDefault
message so that the default implementation can perform its operations.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
ThePrintDefault
function is described in Inside Macintosh: Imaging With QuickDraw.The
'PREC'
resource is described on page 6-51 in the chapter "Printing Resources" in this book.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help